package com.cuit.riskassessment.dao.depart;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cuit.riskassessment.vo.DepartInfo;

public interface DepartInfoMapper {
	public List<DepartInfo> getAll();
	//按条件查询
	public List<DepartInfo> getByElement(
			@Param(value = "name")String name,
			@Param(value = "val")String val
			);
	/**
	 * 查询Cd是否存在
	 * @param cd
	 * @return
	 */
	public String getCd(String cd);
	public void add(DepartInfo departInfo);
	public void update(DepartInfo departInfo);
	public void del(String id);
}
